﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;

namespace BUS
{
    public class ProfileBUS
    {
        public List<aspnet_Profile> LayDanhSach()
        {
            ProfileDAO pDao = new ProfileDAO();
            return pDao.LayDanhSach();
        }

        public aspnet_Profile LayTheoId(Guid Id)
        {
            ProfileDAO pDao = new ProfileDAO();
            return pDao.LayTheoId(Id);

        }


        public void Them(aspnet_Profile temp)
        {
            ProfileDAO pDao = new ProfileDAO();
            pDao.Them(temp);

        }

        public void Xoa(aspnet_Profile temp)
        {

            ProfileDAO pDao = new ProfileDAO();
            pDao.Xoa(temp);


        }

        public void CapNhat(aspnet_Profile temp)
        {
            ProfileDAO pDao = new ProfileDAO();
            pDao.CapNhat(temp);
 
        }


    }
}
